//
//  NSString+HWAttribultedString.m
//  嗨文
//
//  Created by 响当当 on 2019/1/10.
//  Copyright © 2019年 dongzheng. All rights reserved.
//

#import "NSString+HWAttribultedString.h"

@implementation NSString (HWAttribultedString)
- (NSMutableAttributedString *)addAttriButedString:(NSString *)str Color:(UIColor *)color Font:(UIFont *)font rang:(NSRange)range
{
    NSMutableAttributedString *strs = [[NSMutableAttributedString alloc]initWithString:str];
    [strs addAttribute:NSForegroundColorAttributeName value:color range:range];
    [strs addAttribute:NSFontAttributeName value:font range:range];
    
    return strs;
}
@end
